// 用户相关请求接口
import request from '@/js/request';

export function login(data) {
  return request({
    url: '/userRegisterInfo/login',
    method: 'post',
    data,
  });
}

export function getUserInfoUrl(token) {
  return request({
    url: '/userRegisterInfo/getUserInfo',
    method: 'get',
  });
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post',
  });
}

export function pageUserInfo(data) {
    return request({
      url: '/userRegisterInfo/page/userInfo',
      method: 'post',
      data,
    });
}
